import requests from '@/config/request.js'

//--------------------------------------------教练端接口--------------------------------------------------------

//获取教练注册状态
export const getAppServePlayerApplyStatus = (payload) => {
    return requests.httpTokenRequest({
        url: "Serve/GetAppServePlayerApplyStatus",
        data:payload
    });
};

//教练信息
export const getAppServePlayerInfo = (payload) => {
	return requests.httpTokenRequest({
		url: "Serve/GetAppServePlayerInfo",
		data:payload
	});
};

//更新教练信息
export const updateServePlayer = (payload) =>
	requests.httpTokenRequest({
		url:'/Serve/UpdateServePlayerInfo',
		data:payload
	})
	
//获取我的日程信息
export const getSchedule = (payload) =>
	requests.httpTokenRequest({
		url:'/Serve/GetAppTodayServePlayerDateList',
		data:payload
	})

//获取我的新订单	
export const getServeNewPlayOrderList = (payload) =>
	requests.httpTokenRequest({
		url:'/Serve/GetServeNewPlayOrderList',
		data:payload
	})	

//教练订单
export const getAppServePlayOrderInfoList = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/GetAppServePlayOrderInfoList",
		data:payload
	});
};

//教练订单详情
export const getAppPlayOrderDetail = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/GetAppPlayOrderDetail",
		data:payload
	});
};

//教练提现
export const servePlayerWithdraw = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/ServePlayerWithdraw",
		data:payload
	});
};

//教练礼物提现
export const servePlayerGiftCash = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/ServePlayerGiftCash",
		data:payload
	});
};

//教练提现记录
export const getAppCustomerWithdrawList = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/GetAppCustomerWithdrawList",
		data:payload
	});
};

//教练礼物提现记录
export const getAppCustomerCashList = (payload) => {
	return requests.httpTokenRequest({
		url: "Customer/GetAppCustomerCashList",
		data:payload
	});
};

//获取提现手续费
export const getPlayPoundage = (payload) => {
	return requests.httpTokenRequest({
		url: "App/GetPlayPoundage",
		data:payload
	});
};

//获取礼物提现手续费
export const getGiftPoundage = (payload) => {
	return requests.httpTokenRequest({
		url: "App/GetGiftPoundage",
		data:payload
	});
};

//获取礼物记录
export const getAppServePlayerGiftList = (payload) => {
	return requests.httpTokenRequest({
		url: "Serve/GetAppServePlayerGiftList",
		data:payload
	});
};

//删除照片和视频
export const deleteServeMedia = (payload) => {
	return requests.httpTokenRequest({
		url: "Serve/DeleteServeMedia",
		data:payload
	});
};

//上传照片和视频
export const addServePlayerMediaInfo = (payload) => {
	return requests.httpTokenRequest({
		url: "Serve/AddServePlayerMediaInfo",
		data:payload
	});
};

//注册教练
export const addServePlayerInfo = (payload) => {
	return requests.httpTokenRequest({
		url: "Serve/AddServePlayerInfo",
		data:payload
	});
};


//线上教练订单
// export const searchWechatServeOnlinePlayOrderInfoList = (payload) => {
// 	return requests.httpTokenRequest({
// 		url: "OnlineServer/SearchWechatServeOnlinePlayOrderInfoList",
// 		data:payload
// 	});
// };

//获取客服状态
export const getCustomerServiceStatus = (payload) => {
	return requests.httpTokenRequest({
		url: "App/GetCustomerServiceStatus",
		data:payload
	});
};

//获取同步信息状态
export const getCustomerTongBuStatus = (payload) => {
	return requests.httpTokenRequest({
		url: "App/GetCustomerTongBuStatus",
		data:payload
	});
};
// ******************************************新的**************************
//线上教练订单
export const searchWechatServeOnlinePlayOrderInfoList = (payload) => {
	return requests.requestAll("/client/serverPlayerCenter/selectOrder",'get',payload);
};


//教练处理订单
export const acceptOrRejectOrder = (payload) => {
	return requests.requestAll("/client/serverPlayerCenter/acceptOrRejectOrder",'get',payload);
};
// 创建存单消费单
export const submitPlayerOrderDetails = (payload) => {
	return requests.requestAll("/client/serverPlayer/submitPlayerOrderDetails",'post',payload,false);
};
